/*
 * 单页接口
 * @Description: Jishupu-Admin
 * @Author: 技术铺<jishupu@qq.com>
 * @Date: 2021-11-15
 */

import request from '@/utils/request'

/**
 * 查看
 * @param {Number} info_category_id 栏目标识
 * @param {Object} extendConfig
 * @returns  new Promise
 */
export function show(info_category_id, extendConfig) {
  return request.get(`/v1/info-category/${info_category_id}/info-page`, extendConfig)
}

/**
 * 修改
 * @param {Number} info_category_id
 * @param {Object} params
 * @param {Object} extendConfig
 * @returns  new Promise
 */
export function update(info_category_id, params, extendConfig) {
  return request.put(`/v1/info-category/${info_category_id}/info-page`, params, extendConfig)
}
